ShortPixel\Controller\Optimizer\OptimizeAiController C

Total Complexity 112
Dependencies 10
Dependents 3
Total lines 946
Lines of code 638
Logical lines of code 338
Comment lines 86
Methods 26
Properties 0

Methods 26

Method Rating Maintainability Complexity Lines of code
replaceFiles()
A
39 10 68
enqueueItem()
A
42 9 59
getAltData()
A
43 9 46
getPartQuestion()
A
45 9 42
replaceMetaData()
A
52 10 24
getPageQuestion()
A
50 9 29
handleAPIResult()
A
46 7 41
handleReplace()
A
46 7 37
parseQuestion()
S
41 4 59
getRequestJSON()
S
48 5 37
formatResultData()
S
58 5 16
HandleSuccess()
S
49 3 31
replaceImageAttributes()
S
57 2 16
sendToProcessing()
S
59 2 15
isAiEnabled()
S
63 3 10
isAutoAiEnabled()
S
64 3 10
processTextResult()
S
66 3 8
checkItem()
S
60 2 13
getAISettings()
S
52 1 24
HandleItemError()
S
69 2 8
isSupported()
S
68 2 8
undoAltData()
S
59 1 15
__construct()
S
73 1 5
fetchImageMatches()
S
72 1 5
parseJSONForQItem()
S
70 1 6
parseQuestionForQItem()
S
71 1 6